package com.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.test.dao.ResourceMapper;
import com.test.entity.pojo.Resource;
import com.test.service.IResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ResourceService
 * @Discription TODO
 * @Author DaiFuqiang
 * @Date 2022/11/20 11:22
 */
@Service
public class ResourceService extends ServiceImpl<ResourceMapper, Resource> implements IResourceService {
    @Autowired
    ResourceMapper resourceMapper;

    @Override
    public List<Long> getIdsByUserId(Long id) {
        return resourceMapper.getIdsByUserId(id);
    }
}
